﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/MasterPage.master" AutoEventWireup="true"
    CodeFile="Default.aspx.cs" Inherits="_Default" EnableViewState="false" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link rel="stylesheet" type="text/css" href="CSS/HomePage.css" />
    <script type="text/javascript" src="Scripts/flashobj.js"></script>
    <script type="text/javascript">
        jQuery(document).ready(
        function () {
            DD_belatedPNG.fix("#xyly_body");
            var cur_link = 0;
            var wei_top_xline_img = ["weibo_xline.png", "weixin_xline.png"];
            var wei_con_overflow = ["hidden", "auto"];
            var $link = jQuery('#wei_top').find('a');            var $body = jQuery('#wei_con').find(".w_frame");
            $link.css("filter", "alpha(opacity=35").css("opacity", "0.35");
            $link.eq(0).css("filter", "alpha(opacity=100)").css("opacity", "1");
            $link.mouseover(
                function () {
                    if (cur_link == $link.index(this))
                        return;                    cur_link = $link.index(this);
                    var u = "url('" + '<%=ResolveUrl("~/Images/")%>' + wei_top_xline_img[cur_link] + "')";
                    jQuery("#top_border").css('background-image', u);
                    $link.css("filter", "alpha(opacity=35").css("opacity", "0.35");
                    $link.eq(cur_link).css("filter", "alpha(opacity=100)").css("opacity", "1");
                    jQuery('#wei_con').css("overflow-y", wei_con_overflow[cur_link]);
                    if (window.attachEvent && !window.opera) {
                        $body.fadeOut(500);
                        $body.eq(cur_link).fadeIn(500);
                    }
                    else {
                        $body.hide();
                        $body.eq(cur_link).show();
                    }
                }
            );



            jQuery.post('<%=ResolveUrl("~/Ajax/WeiXinFeedList.ashx")%>', function (data, textStatus) {
                 if (textStatus = "success") {
                     var d = jQuery.parseJSON(data);
                     var str = "";
                     for(var i=0;i<d.length;i++)
                     {
                         var k = "";//图片
                         if (d[i].cover!="")
                         {
                             //k = "<br/><div class='img_kuang'><img src='" + d[i].cover + "&mmm=" + Math.random() + "'></div>";
                             k = "<br/><div class='img_kuang'><img src='"+"<%=ResolveUrl("~/UserControl/WeiXinImg.aspx?imgUrl=")%>" + d[i].cover+ "'></div>";
                         }
                         str += "<a href='" + d[i].content_url + "' target='_blank'><span class='w_title'>" + d[i].title + "</span><br/><span class='w_digest'>" + d[i].digest + k+"</span></a>";
                     }
                     jQuery("#weixin_frame").append(str);
            }
            else {
                 }
            });




        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="new_body">
        <div id="new_title_body">
           <div id="new_title">社团活动</div>
        </div>
        <div id="new_con_body">
            <div id="sasFlashFocus27" style="width:520px; height:205px; float:left;">
                <script type="text/javascript">
                    txt = "<%=getFlashData() %>"
                    var sohuFlash2 = new sohuFlash("images/FlashFocus.swf", "27", 520, 205, "7");
                    sohuFlash2.addParam("quality", "high");
                    sohuFlash2.addParam("wmode", "opaque");
                    sohuFlash2.addVariable("txt", txt);
                    sohuFlash2.write("sasFlashFocus27");
                </script>
            </div>
            <div id="new_list">
                <table>
                 <asp:Repeater ID="huodong_list" runat="server">
                   <ItemTemplate>
                     <tr>
                       <td>
                          <img alt="" src='<%=ResolveUrl("~/images/arrow4.gif")%>'/>
                          <a target="_blank" href='<%#ResolveUrl("~/News-"+Eval("BigClassId")+"-"+Eval("SmallClassId")+"-"+Eval("id")+".aspx")%>'  title='<%#Eval("NewTitle")%>'>
                            <%#Eval("NewTitle").ToString().Length > 13 ? Eval("NewTitle").ToString().Substring(0, 13) + "..." : Eval("NewTitle")%>
                          </a> 
                       </td>
                       <td style=" width:70px; text-align:right;">
                       (<%#Eval("AddTime","{0:yy/MM/dd}") %>)
                       </td>
                     </tr>
                   </ItemTemplate>
                 </asp:Repeater>         
               </table> 
            </div>
        </div>
    </div>

    <div id="level1_body">
        <div id="ggzt_body" class="pngFix">
            <div id="gonggao_body">
                <table>
                 <asp:Repeater ID="gonggao_list" runat="server">
                   <ItemTemplate>
                     <tr>
                       <td>
                          <img alt="" src='<%=ResolveUrl("~/images/pot_7.gif")%>'/>
                          <a target="_blank" href='<%#ResolveUrl("~/News-"+Eval("BigClassId")+"-"+Eval("SmallClassId")+"-"+Eval("id")+".aspx")%>'  title='<%#Eval("NewTitle")%>'>
                            <%#Eval("NewTitle").ToString().Length > 20 ? Eval("NewTitle").ToString().Substring(0, 20) + "..." : Eval("NewTitle")%>
                          </a> 
                       </td>
                       <td style=" width:70px; text-align:right;">
                       (<%#Eval("AddTime","{0:yy/MM/dd}") %>)
                       </td>
                     </tr>
                   </ItemTemplate>
                 </asp:Repeater>         
               </table> 
            </div>
            <div id="zhuanti_body">
               <table>
                  <tr>
                     <td>
                        <a href='<%=ResolveUrl("~/WishZT.aspx") %>' target="_blank" >感恩节专题</a>
                     </td>
                  </tr>
                  <tr>
                     <td>
                        <a href="http://blog.sina.com.cn/jyaxfws" target="_blank" >关爱弱势群体</a> 
                     </td>
                  </tr>
               </table>
            </div>
            <div id="aboutus">
                爱心服务社：数学学院爱心服务社建立于1997年7月，她以“五心”为宗旨：忠心献给祖国，爱心献给社会，关心献给他人，孝心献给父母，信心留给自己。 其意在于通过献爱心活动，把数学人培养成品德高尚的一代天骄！
            </div>
        </div>
        <div id="dengxin_body">
            <div id="dengxin_title_body">
               <div id="dengxin_title">灯心文章</div>
            </div>  
            <div id="dengxin_con_body">
                <table>
                 <asp:Repeater ID="dengxin_list" runat="server">
                   <ItemTemplate>
                     <tr>
                       <td>
                          <img alt="" src='<%=ResolveUrl("~/images/pot_7.gif")%>'/>
                          <a target="_blank" href='<%#ResolveUrl("~/DengXin-"+Eval("PeriodsId")+"-"+Eval("ChapterId")+"-"+Eval("id")+".aspx")%>'  title='<%#Eval("NewTitle")%>   (<%#Eval("Author")%>)'>
                            <%#Eval("NewTitle").ToString().Length > 30 ? Eval("NewTitle").ToString().Substring(0, 30) + "..." : Eval("NewTitle")%>
                          </a> 
                       </td>
                     </tr>
                   </ItemTemplate>
                 </asp:Repeater>         
               </table> 
            </div>
        </div>
    </div>
    <div id="level2_body">
        <div id="xyly_body">
            <div id="xuyuan_body">
               <table>
                 <asp:Repeater ID="xuyuan_list" runat="server">
                   <ItemTemplate>
                     <tr>
                       <td>
                          <img alt="" src='<%=ResolveUrl("~/images/SmsMsgSending.gif")%>'/>
                          <a target="_blank" href='<%#ResolveUrl("~/WishingWall.aspx")%>'  title='<%#Eval("qtname")%>：&#10;      <%#Eval("qgame")%>   （<%#Eval("qname")%>）'>
                            <%#Eval("qgame").ToString().Length > 42 ? Eval("qgame").ToString().Substring(0, 42) + "..." : Eval("qgame")%>
                          </a> 
                       </td>
                     </tr>
                   </ItemTemplate>
                 </asp:Repeater>         
               </table> 
            </div>
            <div id="liuyan_body">
               <table>
                 <asp:Repeater ID="liuyan_list" runat="server">
                   <ItemTemplate>
                     <tr>
                       <td>
                          <img alt="" src='<%=ResolveUrl("~/images/SmsMsgSending.gif")%>'/>
                          <a target="_blank" href='<%#ResolveUrl("~/GuestBook.aspx#"+Eval("id"))%>'  title='<%#Eval("Content")%>'>
                            <%#Eval("Content").ToString().Length > 40 ? Eval("Content").ToString().Substring(0, 40) + "..." : Eval("Content")%>
                          </a> 
                       </td>
                     </tr>
                   </ItemTemplate>
                 </asp:Repeater>         
               </table>
            </div>
        </div>
        <div id="weibo_body">
            <div id="wei_top">
                <div id="top_border"></div>
                <a href="javascript:void(0);" id="weibo_link"><img src='<%=ResolveUrl("~/images/weibo_logo.png")%>' /> 微博</a>
                <a href="javascript:void(0);" id="weixin_link"><img src='<%=ResolveUrl("~/images/weixin_logo.png")%>' /> 微信</a>
            </div>
            <div id="wei_con">
                <div id="weibo_frame" class="w_frame">
                    <iframe width="100%" height="540" class="share_self"  frameborder="0" scrolling="no" src="http://widget.weibo.com/weiboshow/index.php?language=&width=0&height=540&fansRow=2&ptype=1&speed=0&skin=5&isTitle=0&noborder=1&isWeibo=1&isFans=0&uid=1708778444&verifier=857d834c&dpc=1"></iframe>
                </div>
                <div id="weixin_frame" class="w_frame">
                </div>
            </div>
        </div>
    </div>
</asp:Content>
